.toolbarContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: #fafafa;
  padding: 24px;
  border-radius: 2px;

  :global {
    .ant-form {
      flex: 1;
      margin-right: 16px;

      .ant-form-item {
        margin-bottom: 0;
        margin-right: 16px;

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
}

.modalForm {
  :global {
    .ant-form-item {
      margin-bottom: 24px;
    }
  }
}

.formContent {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  margin: 0 -32px;
  padding: 0 32px;
  // min-height: calc(100vh - 300px);
}

.basicInfo {
  padding-right: 32px;
  border-right: 1px solid #f0f0f0;

  :global {
    .ant-form-item-label {
      padding-bottom: 8px;
    }
  }
}

.contentEditor {
  display: flex;
  flex-direction: column;
  height: 100%;

  :global {
    .ant-form-item {
      display: flex;
      flex-direction: column;
      flex: 1;
      margin-bottom: 0;

      .ant-form-item-control {
        flex: 1;
        height: 100%;
      }
    }

    .w-e-text-container {
      background-color: #fff;
      border: 1px solid #d9d9d9;
      border-radius: 2px;
      flex: 1;
      height: 100% !important;
      min-height: 500px !important;
      
      &:hover {
        border-color: #40a9ff;
      }
      
      &-focused {
        border-color: #40a9ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
      }
    }

    .w-e-text-container .w-e-scroll {
      height: 100% !important;
      min-height: 100% !important;
      overflow-y: auto;
    }

    .w-e-text-container .w-e-scroll p {
      margin: 0;
      line-height: 1.6;
    }

    .w-e-toolbar {
      border: 1px solid #d9d9d9;
      border-bottom: none;
      border-radius: 2px 2px 0 0;
      background-color: #fafafa;
      padding: 4px;
      
      .w-e-bar-item {
        margin-right: 4px;
        
        button {
          border-radius: 4px;
          padding: 6px;
          
          &:hover {
            background-color: #e6f7ff;
          }
          
          &.active {
            background-color: #1890ff;
            color: #fff;
          }
        }
      }

      .w-e-bar-divider {
        margin: 0 8px;
        height: 16px;
        background-color: #e8e8e8;
      }
    }

    .w-e-text-placeholder {
      color: #bfbfbf;
    }

    // 全屏模式样式
    .w-e-full-screen-container {
      z-index: 1001 !important;

      .w-e-text-container {
        height: calc(100vh - 50px) !important;
      }
    }
  }
}

.modalFooter {
  text-align: right;
  margin: 24px -32px -24px;
  padding: 16px 32px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

@media screen and (max-width: 1200px) {
  .formContent {
    grid-template-columns: 1fr;
  }

  .basicInfo {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
} 